Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve options in svg graph links #2132

Merged
merged 1 commit into from
May 26, 2017
Merged

Conversation

daveFNbuck
Copy link
Contributor

Description

Include options from url hash in svg graph node links.

Motivation and Context

When clicking on the nodes in an svg graph, a graph will load with that node as the root but with hide done and show upstream dependencies unset. This can be very annoying when you suddenly have to load a much larger graph or your graph flips orientation.

In order to preserve these and any future options, we pass the hash with taskId stripped out of it into the dependency graph so it can use that as a basis for the node links. This preserves the options present when the graph was created, which should match the current options on the
page.

D3 graphs also suffer from the same bug, but they are not addressed by this change.

Have you tested this? If so, how?

Ran locally and in production. Willing to write tests once I learn how.

When clicking on the nodes in an svg graph, a graph will load with that
node as the root but with hide done and show upstream dependencies
unset. This can be very annoying when you suddenly have to load a much
larger graph or your graph flips orientation.

In order to preserve these and any future options, we pass the hash with
taskId stripped out of it into the dependency graph so it can use that
as a basis for the node links. This preserves the options present when
the graph was created, which should match the current options on the
page.

D3 graphs also suffer from the same bug, but they are not addressed by
this change.
@mention-bot
Copy link

@daveFNbuck, thanks for your PR! By analyzing the history of the files in this pull request, we identified @DAVW, @nmb10 and @riga to be potential reviewers.

@Tarrasch Tarrasch merged commit c89df15 into spotify:master May 26, 2017
@Tarrasch
Copy link
Contributor

Thanks!

@daveFNbuck daveFNbuck deleted the svg_node_links branch May 27, 2017 02:20
This was referenced Jun 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants